<?php
/* @var $this StatusController */
/* @var $model Status */

$this->breadcrumbs=array(
	Yii::t('base','Statuses')=>array('index'),
	$model->status_id,
);
?>

<h1><?php echo Yii::t('base','View PotentialCustomers'); #<?php echo $modelpotentialcustomers->potential_customers_id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$modelpotentialcustomers,
	'attributes'=>array(
		'potential_customers_id',
		//'potential_customers_list_id',
		array('name'=>'potential_customers_list_id','value'=>PotentialCustomers::model()->getCustomersListName($modelpotentialcustomers->potential_customers_list_id)),
		'first_name',
		'last_name',
		'gender',
		'mobile',
		'email',
		'address',
		'post_code',
		'customer_detail1',
		'customer_detail2',
		'customer_detail3',
		'customer_detail4',
		'customer_detail5',
		'customer_detail6',
		'customer_detail7',
		'customer_detail8',
		'customer_detail9',
		'customer_detail10',
	),
)); ?>



<h1><?php echo Yii::t('base','View Status'); #<?php echo $model->status_id; ?></h1>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'gift-password-grid',
	'dataProvider'=>$model->searchdetail(),
	'itemsCssClass'=>'responsive table table-striped table-bordered',
	'pager'=>array('class'=>'CLinkPager','hiddenPageCssClass'=>'','firstPageCssClass'=>'first paginate_button','firstPageLabel'=>'First','prevPageLabel' => 'Previous','nextPageLabel' => 'Next','lastPageLabel'=>'Last','htmlOptions'=>array('class'=>'dataTables_paginate paging_full_numbers"')),
	'pagerCssClass'=>'pagination pull-right',
	'cssFile'=>false,
	//'filter'=>$model,
	'columns'=>array(
		    //array('name'=>'status_id','headerHtmlOptions'=>array('style'=>'width:7%')),
		array('name'=>'customer_id','headerHtmlOptions'=>array('style'=>'width:10%'),'value'=>'PotentialCustomers::model()->getCustomersFirstLastName($data->customer_id)'),
		//array('name'=>'campaign_id','headerHtmlOptions'=>array('style'=>'width:14%'),'value'=>'Campaign::model()->getCampaignName($data->campaign_id)'),
		array('name'=>'agent_id','headerHtmlOptions'=>array('style'=>'width:14%'),'value'=>'User::model()->getUserName($data->agent_id)'),
		array('name'=>'status','headerHtmlOptions'=>array('style'=>'width:25%'),'value'=>'Status::model()->getStatusName($data->status)."|".$data->notes'),
		array('name'=>'follow_up','headerHtmlOptions'=>array('style'=>'width:15%')),
		array('name'=>'last_called_date_and_time','headerHtmlOptions'=>array('style'=>'width:15%')),
		array('name'=>'followup_statusid','headerHtmlOptions'=>array('style'=>'width:14%'),'value'=>'Status::model()->getfollowupstatus($data->followup_statusid,$data->follow_up)'),
	),
)); ?>
